Release 10.1A: OpenEdge Development:
ADM Reference


anyMessage

Returns a flag indicating whether there are messages in the error message log.

Location: smart.p

Parameters: None

Returns: LOGICAL

Notes: Error messages generated during the execution of SmartObjects (especially SmartDataObjects) are normally saved in a message log (actually just a specially formatted character string). This assures that multiple messages can be accumulated for multiple errors that occur during an update and that messages are returned properly to the client when the errors occur in a separate session on an AppServer. If using a SmartDataObject as the data-source, check BOTH in the SmartDataObject and internally, because WebSpeed-specific errors are always stored internally.

Examples:

IF anyMessage() THEN
  /* code for unsuccessful update */
ELSE
  /* code for successful update */ 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095